//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Core.Serialization;

namespace OpenLS.Spreadsheet
{
    public class FileVersion: IOfficeXmlSerializable
    {
        #region IOfficeXmlSerializable Members

        void IOfficeXmlSerializable.ReadXml(ReadContext context)
        {
            using (ReadContext c = context.Read("fileVersion"))
            {
                ApplicationName = c.GetOptionalString("appName");
                lastEdited = c.GetOptionalString("lastEdited");
                lowestEdited = c.GetOptionalString("lowestEdited");
                rupBuild = c.GetOptionalString("rupBuild");
                codeName = c.GetOptionalGuid("codeName");
            }
        }

        void IOfficeXmlSerializable.WriteXml(WriteContext context)
        {
            using (WriteContext c = context.Write("fileVersion"))
            {
                c.SetOptionalString("appName", appName);
                c.SetOptionalString("lastEdited", lastEdited);
                c.SetOptionalString("lowestEdited", lowestEdited);
                c.SetOptionalString("rupBuild", rupBuild);
                c.SetOptionalGuid("codeName", codeName);
            }
        }

        #endregion

        private string appName;

        public string ApplicationName
        {
            get { return appName; }
            set { appName = value; }
        }

        private string lastEdited;

        public string LastEdited
        {
            get { return lastEdited; }
            set { lastEdited = value; }
        }
        private string lowestEdited;

        public string LowestEdited
        {
            get { return lowestEdited; }
            set { lowestEdited = value; }
        }
        private string rupBuild;

        public string BuildNumber
        {
            get { return rupBuild; }
            set { rupBuild = value; }
        }
        private Guid? codeName;

        public Guid? CodeName
        {
            get { return codeName; }
            set { codeName = value; }
        }
	
	
	
	
	
    }
}
